<template>
	<view class="y-page-common page">
		<view class="image-content" @click="handleClick">
			<image style="width: 100%; height: 100%; background-color: #eeeeee;" mode="scaleToFill"
				src="../../static/imgs_personal/scansuccess.jpg"></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// src: '../../static/imgs_personal/scaning.jpg'
			}
		},
		onLoad() {
			uni.showModal({
				title: '',
				content: '识别成功',
				showCancel: false,
				success: function (res) {
					if (res.confirm) {
						uni.navigateTo({
							url: '/pages/common/IDAuth'
						})
						console.log('用户点击确定');
					} else if (res.cancel) {
						console.log('用户点击取消');
					}
				}
			})
		},
		methods: {
			handleClick() {
				// this.src = '../../static/imgs_personal/scansuccess.jpg'
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		width: 100%;
		height: 100%;
		padding: 26rpx;
		display: flex;
		flex-direction: column;
		align-items: center;		
		.image-content {
			width: 40vw;
			height: 40vw;
			margin: 80rpx auto 200rpx;
			border: 4rpx solid #006AE9;
			overflow: hidden;

		}
	}
</style>